package org.web.core.service;

import java.util.List;

import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.web.core.SimpleMybatisSupport;
import org.web.entity.ResourcesRating;

@Component
@Repository("resourcesRatingService")
public class ResourcesRatingService extends SimpleMybatisSupport<ResourcesRating, Long>{

    @Override
    public String getMybatisMapperNamesapce() {
        return "org.web.entity.ResourcesRating";
    }
    
    
    @SuppressWarnings("unchecked")
	public List<ResourcesRating> getResourcesListByConditions(Object parameter) throws DataAccessException {
        return this.getSqlSession().selectList(toMybatisStatement("getByConditions"), parameter);
    }

}
